package com.glsc.ngateway.common.base.domain.mysql.opmanage.report.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;

/**
 * @author: hc
 * @date: 2022/7/12 15:12
 * @description: 深交所新增初始交易规模(自有)
 */
@Data
@Entity
@Table(name = "t_riskdaily_stockrepo_sz_prop")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
@IdClass(RiskdailyStockRepoSzPropId.class)
public class RiskdailyStockRepoSzProp {
    @Id
    @Column(name = "fd_date")
    private Date date;

    @Id
    @Column(name = "fc_source")
    @ExcelProperty(index = 0)
    private String source;

    @Column(name = "ff_borrow_return")
    @ExcelProperty("借新还旧")
    private Double borrowReturn;

    @Column(name = "ff_other")
    @ExcelProperty("其他")
    private Double other;

    @Column(name = "ff_scale")
    @ExcelProperty("监测规模")
    private Double scale;

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public Double getBorrowReturn() {
        return borrowReturn;
    }

    public void setBorrowReturn(Double borrowReturn) {
        this.borrowReturn = borrowReturn;
    }

    public Double getOther() {
        return other;
    }

    public void setOther(Double other) {
        this.other = other;
    }

    public void setScale(Double scale) {
        this.scale = scale;
    }

    public Double getScale() {
        return scale;
    }
}
